s = int(input())
a = 0
b = 0
for b in range(2,10000):
    for i in range(2, b):
        if b % i == 0:
            break
        else:
            a += b
            number += 1
            print(b)
            if(a >= max):
                break
                print(number)
